For this project, I decided to recreate Hans Rosling’s population and GDP graph. The graph can be found here.
Since the video did not share the dataset, I downloaded another dataset from Our World in Data.
Although the year starts from 1870, I decided to use data only after 1950 because most countries miss values for population and GDP for years before 1950.
There are 166 countries in the dataset, but it misses information about which continent a country belongs to.
I used this website as a reference to continent, and manually labeled each country by using case_when function, but I should have just used left_join for the sake of efficiency…
I used plotly and crosstalk to make a visualization. I think crosstalk does not go well with animation plots as the continents/countries shown are different from ones selected.
I wanted to make it as simple as possible. Without the selector for continents/countries, all dots were crammed together and it was difficult to see specific continents/countries. After implementing the selector, I think the visualization became much simpler.
For the animation visualizations, selected countries do not match with what are shown in the graph, which I want to fix in the future. For the bar graph, the adjacent countries in the list have similar color, so it is hard to distinguish.
The most frustrating part was definitely the mismatching between selected and shown.